package com.itheima.text;

import com.itheima.service.AccountService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.sql.SQLException;

public class TextDemo {
    @Test
    public void test() throws SQLException {

        ApplicationContext as = new ClassPathXmlApplicationContext("ApplicationContext.xml");

        AccountService acc = as.getBean(AccountService.class);

        acc.update();

    }
}
